<?php
class EmptyAction extends BaseAction{

	public function index(){
	
		dump(MODULE_NAME);
		
		$channel_ids = array(
			'sanwen' => 1,
			'shige' => 2,
		);
		$this->category($channel_ids[MODULE_NAME]);
	}
	
	Protected function category($channel_id,$type_id = 0){
		$cateDao = D('Archives');
		$cateVo = $cateDao->where('channel='.$channel_id)->limit(20)->findall();
		//dump($_GET);
		$this->assign('cateVo',$cateVo);
		$this->display('Category');
	}
}
?>